Linear scale measuring device and position detection method using the same

ABSTRACT

A linear scale type measuring device capable of canceling an error caused by inclination of an encoder, a moire error, is disclosed. A linear encoder disposed relative to a scale includes two sensors A and B which are arranged such that they are inclined at a predetermined angle theta with regard to the scale. At the time of measurement, a detection value corresponding to that with no inclination can be obtained by an operation based on detection values from the sensors A and B, and the known angle theta, even when the encoder is further inclined by any angle delta.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a linear scale measuring device, and more particularly to a device employing cancellation of a moire error, and to a position detection method employing this measuring device.

2. Description of Related Art

A linear scale measuring device typically comprises a scale and a linear encoder. The scale is fixed to a mechanical part or device, for example, while the linear encoder is mounted to a movable portion of the device, such that a distance from a reference position or the like is measured.

For such a linear scale type measuring device to perform accurate measurement, the linear encoder must be appropriately positioned relative to the scale. A linear encoder which:.: is inappropriately inclined with regard to the scale produces; error, especially moire error.

For detecting an absolute position using such a measuring device, on the other hand, more than one scales must be simultaneously employed, because, with only one scale, it is not possible to specify which integral multiple of corresponds to the lattice pitch formed on the scale the detected position.

FIG. 3 is a conceptual structural view of a linear scale type measuring device for use in absolute position detection. Referring to FIG. 3, a plurality of scales 10 a and 10 b are disposed in parallel, and relative to these a linear encoder 12 is disposed. The linear encoder 12 includes therein a sensor 1 for detecting a position relative to the scale 10 a and a sensor 2 for detecting a position relative to the scale 10 b.

Each of the sensors 1 and 2 comprises four detecting elements which are arranged at intervals of λ/4 with regard to a wavelength λ of each scale. Specifically, assuming that wavelengths of the scales 10 a and 10 b are set to λ1 and λ2, respectively, the four detecting elements of each sensor 1 and 2 are disposed at intervals of λ1/4 and λ2/4, respectively. When the linear encoder 1 moves, a detection signal is output from each detecting element of the sensor 1. Because the detecting elements are each provided with a displacement of λ1/4 from the adjacent element, the phases of the detection signals are also shifted by λ1/4. Assume that the phase of the detecting element at the left end (first element) is a reference phase, for example, the phase of the detecting element (second element) adjacent to the first element is shifted by 90°, the phase of the detecting element (third element) adjacent to the second element is shifted by 180°, and the phase of the detecting element at the right end (fourth element) is shifted by 270°, respectively, from the reference phase. Accordingly, provided that detecting signals from the first and third elements are detecting signals in the x direction while detecting signals from the second and fourth elements are detecting signals in the y direction, a phase difference is detected by the following expression.

θ1=arctan(y/x)  (1)

The phase difference is then converted into a distance and a position relative to the scale 10 a can be obtained by the following expression.

X1=θ1/2π·λ1  (2)

Similarly, the position relative to the scale 10 b can be obtained with the sensor 2 by the following expression.

X2=θ2/2π·λ2  (3)

Since the reference points for the scales 10 a and 10 b coincide with each other, the absolute position with regard to such a reference point can be detected based on the above X1 and; X2.

As described :above, detection of an absolute position is possible when the linear encoder 12 is precisely positioned relative to the scales 10 a and 10 b. However, when the linear encoder 12 rotates about the center C and is inclined relative to the scales 10 a and 10 b as shown in FIG. 4, the detection values X1 and X2 from the sensors 1 and 2 are no longer accurate and this causes an error, specifically a moire error, to be included in the absolute position detected from X1 and X2.

In order to prevent such a moire error, a technique has been proposed in which a third scale which is the same as either of the scale 10 a or 10 b is further disposed in a symmetrical manner with regard to the center C, such that the detected values for the two same scales are averaged to cancel the moire error. This technique, however, requires 2n−1 scales for n scales and therefore the size of an entire device increases, making downsizing difficult.

It is also possible to provide a moire angle sensor within the encoder for detecting angle data, which is then used to correct the detection values using a software such as a microcomputer. This technique, which requires a separate sensor, also suffers from the problem that it makes downsizing difficult.

SUMMARY OF THE INVENTION

The present invention has been made in view of the foregoing problems of the related art, and aims to provide a measuring device and a position detection method capable of accurate measurement with a simple structure while preventing a moire error.

To this end, a linear scale type measuring device according to one aspect of the invention comprises a scale, and a linear encoder which is disposed relative to said scale includes a plurality of sensors with regard to said scale, the plurality of sensors being collinearly arranged such that.the array of sensors is inclined at a predetermined angle with respect to the longitudinal direction of said scale. The linear scale type measuring device of the present invention further comprises operation means for calculating a detection phase of said linear encoder based on phases detected by said plurality of sensors and said predetermined angle. When two sensors are employed, and providing that phases detected by the two sensors are ΦA, and ΦB, respectively, the initial phases of the two sensors are ΦA0, and ΦB0, respectively, said predetermined angle is θ, a wavelength of said scale is λ, and a distance between the rotation center of the sensors and the center point between the two sensors when the sensors are inclined by the predetermined angle θis L, the operation means may calculate the detection phase of said linear encoder, in other words, the detection phase equal to that when the two sensors are not inclined with respect to the scale, using the following expression.

Φ=(ΦA+ΦB)/2−2π/λ·L {sin θ+(ΦA0−ΦB 0−ΦA+ΦB)/4π sin θ·cos θ}  (4)

The detection phase can be converted into a distance, such that the position of the linear encoder with respect to the reference position of the scale can be obtained.

In order to detect the phase of each of the plurality of sensors, each of the plurality of sensors may, for example, comprise a plurality of sensor elements disposed at predetermined intervals, e.g. ¼ of the scale wavelength. Any number of sensor elements may be provided.

A linear scale type measuring device according to another aspect of the present invention comprises a pair of scales; a linear encoder disposed relative to said pair of scales; and an operation unit for detecting the position of said linear encoder relative to said pair of scales based on an output from said linear encoder, wherein said linear encoder includes a plurality of sensors with regard to each of said pair of scales, said plurality of sensors being previously arranged such that they are inclined at a known angle with respect to the measuring direction of said scales, and wherein said operation unit detects the position of said linear encoder resulting from the inclination of said plurality of sensors with regard to the measuring direction of the scales, based on detection signals from said plurality of sensors and said known angle which is previously set. The position of the encoder resulting from the inclination of the sensors is accurately detected for each of said pair of scales, such that the absolute position of the linear encoder from the reference position can be obtained.

According to still another aspect of the present invention, there is provided a method of detecting a position using a linear scale type measuring device comprising a scale and a linear encoder. The method comprises the steps of (a) inclining a plurality of sensors arranged collinearly within said linear encoder at a predetermined angle with respect to said scale; (b) detecting each phase of said plurality of, sensors using respective of said plurality of sensors; and (c) calculating a detection phase of said linear encoder based on the detected phases, said predetermined angle, and initial phases of said plurality of sensors. The detection phase may be obtained using the above expression.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other objects of the invention will be explained in the description below, in connection with the accompanying drawings, in which:

FIG. 1(a) is a view showing one exemplary scale portion of a structure of a linear scale type measuring device according to an embodiment of the invention;

FIG. 1(b) is a view showing a structure of a linear scale type measuring device according to an embodiment of the invention;

FIG. 2 is an explanatory view of the linear scale type measuring device of FIG. 1;

FIG. 3 is a view showing a structure of a linear scale type measuring device according to a related art; and

FIG. 4 is a view for explaining a moire error in the structure of FIG. 3.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

A preferred embodiment of the present invention will be described in further detail with reference to the accompanying drawings.

FIGS. 1(a) and 1(b) depict a structure of a linear scale type measuring device according to an embodiment of the present invention. Although a pair of scales (see FIG. 1(b) for example) are actually necessary to detect an absolute position, one exemplary scale portion, which has the same structure of the other scale portion, is shown separately in FIG. 1(a) for convenience of explanation.

A linear encoder 12 is disposed relative to a scale 10, and includes two sensors A and B. In contrast with a conventional linear encoder including one sensor with regard to one scale (see FIG. 3 or 4), the two sensors A and B are provided with regard to one scale 10 in this embodiment. Each of the sensors A and B comprises four detection elements which are arranged along one direction (i.e. the longitudinal direction of the scale). Provided that the lattice pitch of the scale 10 is λ, each interval between adjacent elements of said four detection elements is set to λ/4. Thus, detection signals from the respective four detection elements in each sensor A, B have phases which are shifted by 0°, 90°, 180°, and 270°, respectively. The center position of each of the sensors A and B (indicated by points A and B, respectively in FIG. 1(a)) is positioned at a distance r (which is equal to the wavelength λ) from the center point of the line connecting the sensors A and B at each side.

As shown in FIG. 1(a), the sensors A and B are rotated clockwise about the point O so that they are inclined at an angle θ with respect to the scale 10. As a result, the center point of the line connecting the sensors A and B is moved to the point O″ in the figure. The distance between O″ and the rotation center O is L.

Thus, according to this embodiment, two sensors which, are previously arranged so as to be inclined at an angle θ are provided with respect to one scale 10, such that a moire error is prevented, namely accurate position detection without moire error can be performed.

The principle of position detection according to this embodiment will be described with reference to FIG. 2, which is an explanatory view of a main portion of FIG. 1(a). When the sensors A and B rotate about the detection center O of the linear encoder by an angle θ, the positions of the detection centers a and b of the sensors A and B, respectively, in the x direction (longitudinal direction of the scale) move by amounts ΔA and ΔB, respectively, from their positions before rotation.

ΔA=r(cos θ−1)+L sin θ  (5)

ΔB=r(1−cos θ)+L sin θ  (6)

When the phase of the sensor A at angle θ is set to Φ_(AO) while the phase of the sensor B at angle θ is set to Φ_(BO), the phase shift of the sensors A and B due to the above movement is obtained from the foregoing expressions (5) and (6) as follows:

Δθ=Φ_(AO)−Φ_(BO)=2r(cos θ−1)·2π/r=4π(cos θ−1)  (7)

When the angle θ changes to θ+δ, the shift amount of the sensors A and B due this angle change is as follows:

Δ_(θ+δ)=4π(cos θ cosδ−sinθ sin δ−1)  (8)

If θ>>δ, approximation of sin δ=δ and cos δ=1 is possible, and therefore the above expression (8) is as follows:

Δ_(θ+δ)=4π(cos θ−δ sin θ−1)=Δ_(θ)−4πδ sin θ  (9)

Because the expression (7) is used to obtain the expression (9), the following expression can be provided from the expression (9).

δ=(Δ_(θ)−Δ_(θ+δ))/4πsinθ  (10)

On the other hand, providing that the phases of the sensors A and B are ΦA and ΦB, respectively, the phase at the point O″, namely the center point of the sensors A and B. from FIG. 2, is as follows:

Φ_(O″)=(ΦA+ΦB)/2  (11)

From FIG. 2, the phase of the linear encoder 12 at the detection center O is as follows:

Φ_(O)=Φ_(O″)−2π/r·L sinθ  (12)

When the phases of the sensors A and B when the angle θ changes to θ+δ are Φ_(Aδ) and Φ_(Bδ), respectively, Φ_(O″) changes as follows:

Φ_(O″δ)=(Φ_(Aδ)+Φ_(Bδ))/2  (13)

Then, the expression (12) is as follows:

Φ_(O)=Φ_(O″δ)−2π/r·L sin (θ+δ)=(Φ_(Aδ)+Φ_(Bδ))/2−2π/r·L(sin θ+δ cos θ)  (14)

Here, since θ is calculated from the expression (10) and in the expression (10),

Δ_(θ)=Φ_(AO)+Φ_(BO)  (15)

and

Δ_(θ+δ)=Φ_(Aδ)−Φ_(Bδ)  (16),

the expression (14) can finally be expresses as

Φ_(O)=(Φ_(Aδ)+Φ_(Bδ))/2−2π/r·L{ sin θ+(Φ_(AO)−Φ_(BO)−Φ_(δ)+Φ_(Bδ))/4π sin θ·cos θ}  (17)

When the wavelength λ of the scale 10 is used,

Φ_(O)=(Φ_(Aδ)+Φ_(Bδ))/2−2πr/λ·L{ sin θ+(Φ_(AO)−Φ_(BO)−Φ_(Aδ)+Φ_(Bδ))/4π sin θ·cos θ}  (18)

can be obtained.

The above expression (17) or (18) indicates the following. The phases of the sensors A and B which are previously inclined by an angle θ are detected (at this time, due to movement of the linear encoder 12, the angle θ slightly varies by an amount of a moire angleδ, namely to θ+δ), and the predetermined angle θ, the phase of the sensor A at the angle θ (the initial set phase) Φ_(AO), and the phase of the sensor B at the angleθ (the initial set phase)Φ_(BO) are used, such that the phase Φ_(O) at the detection center of the linear encoder, namely the position in the x direction which corresponds to that when the linear encoder is not inclined, can be accurately detected, even when the linear encoder is inclined by any angle from the angle θ. The operation of the expression (18) may be performed by a processor 13 provided within the linear encoder 12. Specifically, the detection phases from the sensors A and B are supplied to the processor 13 which previously stores a known physical amount in its RAM or the like, and the processor 13 performs operation according to the expression (18) to output the results. It is also possible to output the detection signals from the sensors A and B to an external processing unit (such as a personal computer) which may then perform operation according to the expression (18).

Thus, the linear scale type measuring device according to the foregoing embodiment, which performs a predetermined operation (an operation which execute the expression (18) based on the detection values), enables accurate position detection even when the linear encoder is inclined. This can eliminates the conventional structure having 2n−1 scales for n scales or a separate angle sensor.

Although two sensors which are previously inclined by an angle θ are disposed with respect to one scale in the foregoing embodiment, it is also possible to set the intervals of the detection elements for each of the two sensors at different values whose difference corresponds to that when the linear encoder is inclined by the angle θ.

Further, it is needless to say that, since the foregoing embodiment assumesθ>>δ, a change in inclination (moire angle) at the actual measurement should preferably be minimized.

As described above, according to the present invention, a moire error can be easily eliminated to perform accurate measurement without the need for providing 2n−1 scales for n scales or for providing a separate angle sensor for detecting the moire angle.

While the preferred embodiment of the present invention has been described using specific terms, such description is for illustrative purposes only, and it is to be understood that changes and variations may be made without departing from the spirit or scope of the appended claims. 

What is claimed is:
 1. A linear scale measuring device comprising: a scale; a linear encoder disposed relative to said scale; and operation means for calculating a detection phase of said linear encoder by Φ_(O)=(Φ_(Aδ)+Φ_(Bδ)/)2−2π/λ·L{ sin θ+(Φ_(AO)−Φ_(BO)−Φ_(Aδ)+Φ_(Bδ))/4π sin θ·cos θ}, wherein said linear encoder includes a two sensors with regard to said scale, the sensors being collinearly arranged such that an array of the sensors is inclined at a predetermined angle with respect to the longitudinal direction of said scale, and wherein the phases detected by said two sensors are Φ_(Aδ), and Φ_(Bδ), respectively, the initial phases of the two sensors are Φ_(AO), and Φ_(BO), respectively, said predetermined angle is θ, a wavelength of said scale is λ, and a distance between the rotation center of the sensors and the center point between the two sensors when the sensors are inclined by the predetermined angle θis L.
 2. A linear scale measuring device according to claim 1, wherein a plurality of said scales are provided with two sensors disposed with regard to each of said plurality of scales.
 3. A linear scale measuring device according to claim 1 further comprising operation means for calculating a detection phase of said linear encoder based on phases detected by said sensors and said predetermined angle.
 4. A linear scale measuring device according to claim 1, wherein each of the sensors comprises a plurality of sensor elements disposed at predetermined intervals.
 5. A method of detecting a position using a linear scale type measuring device comprising a scale and a linear encoder, the method comprising the steps of: (a) inclining two sensors arranged collinearly within said linear encoder at a predetermined angle with respect to said scale; (b) detecting a phase of each of said sensors using said sensors; and (c) calculating a detection phase of said linear encoder based on the detected phases, said predetermined angle, and initial phases of said sensors, the detection phase of said linear encoder being calculated by Φ_(O)=(Φ_(Aδ)+Φ_(Bδ))/2−2π/λ·L{ sin θ+Φ_(AO)−Φ_(BO)−Φ_(Aδ)+Φ_(Bδ))/4π sin θ·cos θ}, wherein the phases detected by said two sensors are Φ_(Aδ), and Φ_(Bδ), respectively, the initial phases of the two sensors are Φ_(AO), and Φ_(BO), respectively, said predetermined angle is θ, a wavelength of said scale is λ, and a distance between the rotation center of the sensors and the center point between the two sensors when the sensors are inclined by the predetermined angle θ is L.
 6. A method according to claim 5, wherein each of said sensors comprises a plurality of sensor elements, and in said step (b), the phase of each sensor is detected based on detection signals from said plurality of sensor elements. 